package com.echo.echovividlive.controller;


import com.echo.echovividlive.domain.entity.Gift;
import com.echo.echovividlive.domain.entity.Result;
import com.echo.echovividlive.service.IGiftService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xiajunjie
 * @since 2024-10-22
 */
@RestController
@RequestMapping("/echo/gift")
public class GiftController {

    @Resource
    private IGiftService giftService;

    @GetMapping("/list")
    public Result getAll() {
        return Result.success(giftService.list());
    }
}
